package com.gf.forcesystem.config;

import com.gf.framework.common.utils.list.GfArrayList;
import com.gf.framework.rabbitmq.model.ExchangeInfo;
import com.gf.framework.rabbitmq.model.ExchangeType;
import com.gf.framework.rabbitmq.model.QueueInfo;
import com.gf.framework.rabbitmq.porperties.MqProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author gaofei
 * @date 2022/8/21 14:57
 */
@Component
public class ForceRabbitmqConfig implements MqProperties {
    /**
     * 交换机
     */
    public static final String FORCE_EXCHANGE = "Cotasking.TargetStateExchange";

    /**
     * 队列
     */
    public static final String FORCE_QUEUE = "";

    /**
     * routing key
     */
    public static final String FORCE_ROUTKEY = "Cotasking.TargetState";

    @Override
    public List<ExchangeInfo> getExchanges() {
        return new GfArrayList<ExchangeInfo>().of(new ExchangeInfo(FORCE_EXCHANGE, ExchangeType.DIRECT));
    }

    @Override
    public List<QueueInfo> getQueues() {
        return null;
    }
}
